// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package edu.uoc.tfc.dbmodel.security;
/**
 * @see edu.uoc.tfc.dbmodel.security.Role
 */
public class RoleDaoImpl
    extends edu.uoc.tfc.dbmodel.security.RoleDaoBase
{
    /**
     * @see edu.uoc.tfc.dbmodel.security.RoleDao#toRoleVO(edu.uoc.tfc.dbmodel.security.Role, edu.uoc.tfc.dto.security.RoleVO)
     */
    public void toRoleVO(
        edu.uoc.tfc.dbmodel.security.Role source,
        edu.uoc.tfc.dto.security.RoleVO target)
    {
        // @todo verify behavior of toRoleVO
        super.toRoleVO(source, target);
    }


    /**
     * @see edu.uoc.tfc.dbmodel.security.RoleDao#toRoleVO(edu.uoc.tfc.dbmodel.security.Role)
     */
    public edu.uoc.tfc.dto.security.RoleVO toRoleVO(final edu.uoc.tfc.dbmodel.security.Role entity)
    {
        // @todo verify behavior of toRoleVO
        return super.toRoleVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private edu.uoc.tfc.dbmodel.security.Role loadRoleFromRoleVO(edu.uoc.tfc.dto.security.RoleVO roleVO)
    {
        // @todo implement loadRoleFromRoleVO
        throw new java.lang.UnsupportedOperationException("edu.uoc.tfc.dbmodel.security.loadRoleFromRoleVO(edu.uoc.tfc.dto.security.RoleVO) not yet implemented.");

        /* A typical implementation looks like this:
        edu.uoc.tfc.dbmodel.security.Role role = this.load(roleVO.getId());
        if (role == null)
        {
            role = edu.uoc.tfc.dbmodel.security.Role.Factory.newInstance();
        }
        return role;
        */
    }

    
    /**
     * @see edu.uoc.tfc.dbmodel.security.RoleDao#roleVOToEntity(edu.uoc.tfc.dto.security.RoleVO)
     */
    public edu.uoc.tfc.dbmodel.security.Role roleVOToEntity(edu.uoc.tfc.dto.security.RoleVO roleVO)
    {
        // @todo verify behavior of roleVOToEntity
        edu.uoc.tfc.dbmodel.security.Role entity = this.loadRoleFromRoleVO(roleVO);
        this.roleVOToEntity(roleVO, entity, true);
        return entity;
    }


    /**
     * @see edu.uoc.tfc.dbmodel.security.RoleDao#roleVOToEntity(edu.uoc.tfc.dto.security.RoleVO, edu.uoc.tfc.dbmodel.security.Role)
     */
    public void roleVOToEntity(
        edu.uoc.tfc.dto.security.RoleVO source,
        edu.uoc.tfc.dbmodel.security.Role target,
        boolean copyIfNull)
    {
        // @todo verify behavior of roleVOToEntity
        super.roleVOToEntity(source, target, copyIfNull);
    }

}